
<% content_for :left do %>
  <%= link_to 'Artist list', artists_path %>
<% end %>

<h1>Song list</h1>

<table>
  <tr>
    <th>Artist</th>
    <th>Title</th>
  </tr>

<% for song in @songs %>
  <tr>
    <td><%= link_to song.artist.name, artist_path(song.artist) %></td>
    <td><%= link_to song.title, artist_song_path(song.artist, song) %></td>
  </tr>
<% end %>
</table>

<br/>

